]> dgit.raspbian.org Git - gnome-shell.git/commit
st/viewport: Don't trigger relayout when picking
authorJonas Ådahl <jadahl@gmail.com>
Wed, 9 Dec 2020 18:02:55 +0000 (19:02 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 9 Dec 2020 21:09:39 +0000 (22:09 +0100)
commit4e57119f40259ab5ecfd013256ac9fc81f234646
tree6870e72b6c82ea34cafde3dd359ef455b02a54ef
parentd263f5731c094c412446cc671d511279d6b010ad
st/viewport: Don't trigger relayout when picking

Calling clutter_actor_get_allocation_box() might still implicitly
trigger a full relayout, which has many side effects not expected to
occur during picking. Avoid a particular case which caused a reentry
issue by using the current allocation instead of forcing a relayout when
picking in StViewport.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1436
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1527>
src/st/st-viewport.c